import  axios from "../../axios.js"

//数据来源维护接口
export default{
  // 数据来源新增
  insert(data,binding)
  {
    return axios({
      url:'/crm/dataSource/insert',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //查询所有数据来源
  queryAll(data,binding)
  {
    return axios({
      url:'/crm/dataSource/queryAll',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  //删除数据来源
  deleteById(data,binding)
  {
    return axios({
      url:'/crm/dataSource/deleteById',
      method:'get',
      params: data,
      headers:{
        "binding": binding
      }
    })
  },
  //修改数据来源
  update(data,binding)
  {
    return axios({
      url:'/crm/dataSource/update',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },
  // 查询未关闭的数据来源
  queryOpen(data,binding)
  {
    return axios({
      url:'/crm/dataSource/queryOpen',
      method:'get',
      params: data,
      headers:{
        "binding": binding
      }
    })
  },
};
